
using NaughtyAttributes;
using UnityEngine;
using ZSW.Framework.Utils;

namespace ZSW.Framework
{
    public class ZSWF_MonoBehaviour : MonoBehaviour
    {
        [SerializeField] protected bool m_override;
        [SerializeField, ShowIf("m_override")] protected bool m_isDebug = true;

        protected virtual void Log(string msg)
        {
            if (m_isDebug)
            {
                ZSWFUtil_Debug.Log(transform.name, msg);
            }
        }

        protected virtual void LogWarning(string msg)
        {
            if (m_isDebug)
            {
                ZSWFUtil_Debug.LogWarning(transform.name, msg);
            }
        }
        protected virtual void LogError(string msg)
        {
            if (m_isDebug)
            {
                ZSWFUtil_Debug.LogError(transform.name, msg);
            }
        }
    }
}